import Vue from 'vue'
import App from './App.vue'

import './plugins/element.js'
import '@/assets/css/index.css'

import store from './store/index'
import router from './router/index'



import '@/assets/css/index.styl';
import './assets/icons'
import './permission';

import {parseTime, handleTree, resetForm, deepClone } from '@/utils/mis';

Vue.prototype.parseTime = parseTime
Vue.prototype.handleTree = handleTree
Vue.prototype.resetForm = resetForm
Vue.prototype.deepClone = deepClone

Vue.prototype.msgSuccess = function(msg) {
  this.$message({ showClose: true, message: msg, type: "success"})
}
Vue.prototype.msgError = function(msg) {
  this.$message({ showClose: true, message: msg, type: "error"})
}
Vue.prototype.msgInfo = function(msg) {
  this.$message.info(msg)
}
Vue.prototype.msgWarning = function(msg) {
  this.$message({ showClose: true, message: msg, type: "warning"})
}
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
